//
//  PermissionManager.h
//  plugin_image
//
//  Created by liting on 2025/8/22.
//

#import <Foundation/Foundation.h>
#import <AVFoundation/AVFoundation.h>
#import <Photos/Photos.h>

typedef NS_ENUM(NSInteger, PermissionType) {
    PermissionTypeCamera,
    PermissionTypePhotoLibrary
};

typedef void (^PermissionResultBlock)(BOOL granted, NSString *message);

@interface PermissionManager : NSObject

+ (instancetype)sharedManager;

// 检查权限
- (void)checkPermissionForType:(PermissionType)type completion:(PermissionResultBlock)completion;

// 请求权限
- (void)requestPermissionForType:(PermissionType)type completion:(PermissionResultBlock)completion;

@end
